<template>
	<view class="box">
		<view class="box_item" v-for="(item,index) in list" :style="{
			'background':bgColor
		}" @click="toDetail(item)">
			<view class="title" :style="{
				'color':titleColor
			}">
			{{item.name}}
			<u-icon name="arrow-right" color="#ADADAD"></u-icon>

			</view>
			<view class="text" :style="{
				'color':textColor
			}">{{item.renwu_count}}个人物</view>
		</view>
		<view style="height:50rpx"></view>
	</view>
</template>

<script>
	export default {
		props:{
			bgColor:{
				type:String,
				default:'#F7F8FA'
			},
			titleColor:{
				type:String,
				default:'#444444'
			},
			textColor:{
				type:String,
				default:'#ADADAD'
			},
			list: {
			  type: Array,
			  default: () => [],
			},
			search:{
				type:String,
				default:''
			},
			type:{
				type:Number,
				default:1
			}
		},
		data() {
			return {
				list1:[{
					title:'巴蜀',
					text:'9'
				},{
					title:'云贵',
					text:'2'
				},{
					title:'中原腹地',
					text:'10'
				},{
					title:'山东',
					text:'3'
				}]
			}
		},
		methods:{
			toDetail(item) {
				// console.log('itemmmm',item,this.search);
				uni.navigateTo({
					url:"/pages/character/characterDetailList?id=" + item.id +'&title=' + item.name +'&search=' + this.search + '&type=' + this.type
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.box {
		width: 100%;
		.box_item {
			width: 100%;
			background: #F7F8FA;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			padding: 32rpx;
			box-sizing: border-box;
			margin-bottom: 24rpx;
			.title {
				font-size: 32rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 400;
				color: #444444;
				display: flex;
				justify-content: space-between;
			}
			.text {
				margin-top: 16rpx;
				font-size: 26rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 400;
				color: #ADADAD;
			}
		}
	}
</style>